package com.xuecheng.content.service;

import com.xuecheng.commons.model.dto.BindTeachplanMediaDto;
import com.xuecheng.commons.model.dto.BindTeachplanWorkDto;
import com.xuecheng.commons.model.dto.TeachplanDto;
import com.xuecheng.commons.model.vo.ResponseResult;
import com.xuecheng.content.domain.Teachplan;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 课程计划 服务类
 * </p>
 *
 * @author itheima
 * @since 2022-07-16
 */
public interface TeachplanService extends IService<Teachplan> {

        ResponseResult treeNodes(Long courseId);

        ResponseResult saveOrUpdate(TeachplanDto teachplanDto);

        ResponseResult deleteById(Long id);


        ResponseResult associateMedia(BindTeachplanMediaDto dto);

        ResponseResult associateWork(BindTeachplanWorkDto dto);

        ResponseResult unbind(Long teachplanWorkId, Long courseBaseId);
}
